package com.yuyou.tas.lesson.mapper;

import com.yuyou.tas.service.api.lesson.dto.DtoBaseMaterial;
import com.yuyou.tas.service.api.lesson.entity.BaseMaterial;
import com.yuyou.tas.util.bean.Pagination;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseMaterialMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BaseMaterial record);

    BaseMaterial selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BaseMaterial record);

    int findMaterialCount(Pagination<DtoBaseMaterial> queryPgn);
    List<DtoBaseMaterial> findMaterialPageList(Pagination<DtoBaseMaterial> queryPgn);

    BaseMaterial selectByPKandOrgan(@Param(value="id") Long id, @Param(value="authOrganizationId") Long authOrganizationId);
}